@import './variables.module.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './ruoyi.scss';

body {
  height: 100%;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

// 错误页
.errPage-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  height: calc(100vh - 50px);
}

// 表单相关样式
.form-box {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  flex: 1;
  .el-form-item {
    width: 50%;
    align-items: flex-start;
    .el-input,
    .el-input-number,
    .el-select,
    .el-cascader {
      width: 100%;
    }
  }
  .el-form-item__label {
    font-weight: 400;
    padding: 0;
    display: flex;
    align-items: center;
    .zx-table-headertip-icon {
      margin-left: 2px !important;
      margin-right: 2px;
    }
  }
}
.form-title {
  font-weight: 800;
  font-size: 18px;
  width: 100%;
  margin-bottom: 15px;
  padding-left: 12px;
  line-height: 32px;
  position: relative;
  color: var(--el-color-primary);
  display: flex;
  align-items: center;
  &::before {
    position: absolute;
    width: 5px;
    height: 24px;
    background-color: var(--el-color-primary);
    left: 0;
    top: 4px;
    content: '';
  }
  .zx-table-headertip-icon {
    font-size: 21px !important;
  }
}
.form-title-2 {
  font-weight: 800;
  font-size: 15px;
  width: 100%;
  margin-bottom: 15px;
  color: var(--el-color-primary-light-1);
  display: flex;
  align-items: center;
  .el-icon {
    font-size: 18px !important;
    margin-top: 1px;
  }
}
.form-tip-title {
  display: flex;
  align-items: center;
  .el-icon {
    font-size: 18px !important;
  }
}
.form-intro {
  font-size: 12px;
  color: #aaa;
  line-height: 16px;
  margin-top: 3px;
  width: 100%;
}
.form-btn-item {
  display: flex;
  width: 100%;
  .el-button {
    width: 40px;
    .el-icon {
      font-size: 24px;
      color: #999;
    }
  }
  .el-input,
  .el-select,
  .el-cascader,
  .el-input-number {
    flex: 1;
  }
}
.form-box-readonly {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.form-item-readonly {
  display: flex;
  width: 50%;
  line-height: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-top: 6px;
}
.form-label-readonly {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  .zx-table-headertip-icon {
    margin-left: 2px !important;
    margin-right: 2px;
  }
}
.form-loading-select {
  .el-loading-spinner {
    margin-top: -12px;
    svg {
      height: 25px;
    }
  }
}
.form-value-readonly {
  flex: 1;
  word-break: break-all;
  .zx-table-img-popover-box {
    padding: 0 !important;
  }
}
.form-label-80 {
  .form-label-readonly {
    width: 80px;
  }
}
.form-label-90 {
  .form-label-readonly {
    width: 90px;
  }
}
.form-label-100 {
  .form-label-readonly {
    width: 100px;
  }
}
.form-label-110 {
  .form-label-readonly {
    width: 110px;
  }
}
.form-label-120 {
  .form-label-readonly {
    width: 120px;
  }
}

.number-form-item {
  .el-input-number {
    flex: 1;
    input {
      text-align: left;
    }
  }
  .number-form-unit {
    display: inline-block;
    margin-left: 6px;
  }
}
.table-form-item {
  flex-wrap: wrap;
  .el-form-item__content {
    width: 100%;
    flex: none;
  }
}
.form-item-whole-line {
  width: 100% !important;
}

.organize-table-container {
  display: flex;
  .zx-container {
    width: calc(100% - 285px) !important;
  }
}
.lefttab-table-container {
  display: flex;
  .zx-container {
    width: calc(100% - 200px) !important;
  }
}
.input-loading-icon {
  animation: loading 1s infinite linear;
}
@keyframes loading {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

.success-text {
  color: var(--el-color-success);
}

.danger-text {
  color: var(--el-color-danger);
}
